<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, user-scalable=no">
  <meta name="description" content="API docs for the Offset class from the dart:ui library, for the Dart programming language.">
  <title>Offset class - dart:ui library - Dart API</title>
  <!-- required because all the links are pseudo-absolute -->
  <base href="..">

  <link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:500,400i,400,300|Source+Sans+Pro:400,300,700" rel="stylesheet">
  <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
  <link rel="stylesheet" href="static-assets/github.css">
  <link rel="stylesheet" href="static-assets/styles.css">
  <link rel="icon" href="static-assets/favicon.png">
  
</head>

<body>

<div id="overlay-under-drawer"></div>

<header id="title">
  <button id="sidenav-left-toggle" type="button">&nbsp;</button>
  <ol class="breadcrumbs gt-separated dark hidden-xs">
    <li><a href="index.html">shake</a></li>
    <li><a href="dart-ui/dart-ui-library.html">dart:ui</a></li>
    <li class="self-crumb">Offset class</li>
  </ol>
  <div class="self-name">Offset</div>
  <form class="search navbar-right" role="search">
    <input type="text" id="search-box" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
  </form>
</header>

<main>

  <div id="dartdoc-sidebar-left" class="col-xs-6 col-sm-3 col-md-2 sidebar sidebar-offcanvas-left">
    <header id="header-search-sidebar" class="hidden-l">
      <form class="search-sidebar" role="search">
        <input type="text" id="search-sidebar" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
      </form>
    </header>
    
    <ol class="breadcrumbs gt-separated dark hidden-l" id="sidebar-nav">
      <li><a href="index.html">shake</a></li>
      <li><a href="dart-ui/dart-ui-library.html">dart:ui</a></li>
      <li class="self-crumb">Offset class</li>
    </ol>
    
    <h5>dart:ui library</h5>
    <ol>
      <li class="section-title"><a href="dart-ui/dart-ui-library.html#classes">Classes</a></li>
      <li><a href="dart-ui/AccessibilityFeatures-class.html">AccessibilityFeatures</a></li>
      <li><a href="dart-ui/CallbackHandle-class.html">CallbackHandle</a></li>
      <li><a href="dart-ui/Canvas-class.html">Canvas</a></li>
      <li><a href="dart-ui/Codec-class.html">Codec</a></li>
      <li><a href="dart-ui/Color-class.html">Color</a></li>
      <li><a href="dart-ui/ColorFilter-class.html">ColorFilter</a></li>
      <li><a href="dart-ui/EngineLayer-class.html">EngineLayer</a></li>
      <li><a href="dart-ui/FontWeight-class.html">FontWeight</a></li>
      <li><a href="dart-ui/FrameInfo-class.html">FrameInfo</a></li>
      <li><a href="dart-ui/Gradient-class.html">Gradient</a></li>
      <li><a href="dart-ui/Image-class.html">Image</a></li>
      <li><a href="dart-ui/ImageFilter-class.html">ImageFilter</a></li>
      <li><a href="dart-ui/ImageShader-class.html">ImageShader</a></li>
      <li><a href="dart-ui/IsolateNameServer-class.html">IsolateNameServer</a></li>
      <li><a href="dart-ui/Locale-class.html">Locale</a></li>
      <li><a href="dart-ui/MaskFilter-class.html">MaskFilter</a></li>
      <li><a href="dart-ui/Offset-class.html">Offset</a></li>
      <li><a href="dart-ui/OffsetBase-class.html">OffsetBase</a></li>
      <li><a href="dart-ui/Paint-class.html">Paint</a></li>
      <li><a href="dart-ui/Paragraph-class.html">Paragraph</a></li>
      <li><a href="dart-ui/ParagraphBuilder-class.html">ParagraphBuilder</a></li>
      <li><a href="dart-ui/ParagraphConstraints-class.html">ParagraphConstraints</a></li>
      <li><a href="dart-ui/ParagraphStyle-class.html">ParagraphStyle</a></li>
      <li><a href="dart-ui/Path-class.html">Path</a></li>
      <li><a href="dart-ui/PathMetric-class.html">PathMetric</a></li>
      <li><a href="dart-ui/PathMetricIterator-class.html">PathMetricIterator</a></li>
      <li><a href="dart-ui/PathMetrics-class.html">PathMetrics</a></li>
      <li><a href="dart-ui/Picture-class.html">Picture</a></li>
      <li><a href="dart-ui/PictureRecorder-class.html">PictureRecorder</a></li>
      <li><a href="dart-ui/PluginUtilities-class.html">PluginUtilities</a></li>
      <li><a href="dart-ui/PointerData-class.html">PointerData</a></li>
      <li><a href="dart-ui/PointerDataPacket-class.html">PointerDataPacket</a></li>
      <li><a href="dart-ui/Radius-class.html">Radius</a></li>
      <li><a href="dart-ui/Rect-class.html">Rect</a></li>
      <li><a href="dart-ui/RRect-class.html">RRect</a></li>
      <li><a href="dart-ui/RSTransform-class.html">RSTransform</a></li>
      <li><a href="dart-ui/Scene-class.html">Scene</a></li>
      <li><a href="dart-ui/SceneBuilder-class.html">SceneBuilder</a></li>
      <li><a href="dart-ui/SceneHost-class.html">SceneHost</a></li>
      <li><a href="dart-ui/SemanticsAction-class.html">SemanticsAction</a></li>
      <li><a href="dart-ui/SemanticsFlag-class.html">SemanticsFlag</a></li>
      <li><a href="dart-ui/SemanticsUpdate-class.html">SemanticsUpdate</a></li>
      <li><a href="dart-ui/SemanticsUpdateBuilder-class.html">SemanticsUpdateBuilder</a></li>
      <li><a href="dart-ui/Shader-class.html">Shader</a></li>
      <li><a href="dart-ui/Shadow-class.html">Shadow</a></li>
      <li><a href="dart-ui/Size-class.html">Size</a></li>
      <li><a href="dart-ui/StrutStyle-class.html">StrutStyle</a></li>
      <li><a href="dart-ui/Tangent-class.html">Tangent</a></li>
      <li><a href="dart-ui/TextBox-class.html">TextBox</a></li>
      <li><a href="dart-ui/TextDecoration-class.html">TextDecoration</a></li>
      <li><a href="dart-ui/TextPosition-class.html">TextPosition</a></li>
      <li><a href="dart-ui/TextStyle-class.html">TextStyle</a></li>
      <li><a href="dart-ui/Versions-class.html">Versions</a></li>
      <li><a href="dart-ui/Vertices-class.html">Vertices</a></li>
      <li><a href="dart-ui/Window-class.html">Window</a></li>
      <li><a href="dart-ui/WindowPadding-class.html">WindowPadding</a></li>
    
    
    
      <li class="section-title"><a href="dart-ui/dart-ui-library.html#properties">Properties</a></li>
      <li><a href="dart-ui/versions.html">versions</a></li>
      <li><a href="dart-ui/window.html">window</a></li>
    
      <li class="section-title"><a href="dart-ui/dart-ui-library.html#functions">Functions</a></li>
      <li><a href="dart-ui/decodeImageFromList.html">decodeImageFromList</a></li>
      <li><a href="dart-ui/decodeImageFromPixels.html">decodeImageFromPixels</a></li>
      <li><a href="dart-ui/hashList.html">hashList</a></li>
      <li><a href="dart-ui/hashValues.html">hashValues</a></li>
      <li><a href="dart-ui/instantiateImageCodec.html">instantiateImageCodec</a></li>
      <li><a href="dart-ui/lerpDouble.html">lerpDouble</a></li>
      <li><a href="dart-ui/loadFontFromList.html">loadFontFromList</a></li>
      <li><a href="dart-ui/saveCompilationTrace.html">saveCompilationTrace</a></li>
    
      <li class="section-title"><a href="dart-ui/dart-ui-library.html#enums">Enums</a></li>
      <li><a href="dart-ui/AppLifecycleState-class.html">AppLifecycleState</a></li>
      <li><a href="dart-ui/BlendMode-class.html">BlendMode</a></li>
      <li><a href="dart-ui/BlurStyle-class.html">BlurStyle</a></li>
      <li><a href="dart-ui/BoxHeightStyle-class.html">BoxHeightStyle</a></li>
      <li><a href="dart-ui/BoxWidthStyle-class.html">BoxWidthStyle</a></li>
      <li><a href="dart-ui/Brightness-class.html">Brightness</a></li>
      <li><a href="dart-ui/Clip-class.html">Clip</a></li>
      <li><a href="dart-ui/ClipOp-class.html">ClipOp</a></li>
      <li><a href="dart-ui/FilterQuality-class.html">FilterQuality</a></li>
      <li><a href="dart-ui/FontStyle-class.html">FontStyle</a></li>
      <li><a href="dart-ui/ImageByteFormat-class.html">ImageByteFormat</a></li>
      <li><a href="dart-ui/PaintingStyle-class.html">PaintingStyle</a></li>
      <li><a href="dart-ui/PathFillType-class.html">PathFillType</a></li>
      <li><a href="dart-ui/PathOperation-class.html">PathOperation</a></li>
      <li><a href="dart-ui/PixelFormat-class.html">PixelFormat</a></li>
      <li><a href="dart-ui/PointerChange-class.html">PointerChange</a></li>
      <li><a href="dart-ui/PointerDeviceKind-class.html">PointerDeviceKind</a></li>
      <li><a href="dart-ui/PointMode-class.html">PointMode</a></li>
      <li><a href="dart-ui/StrokeCap-class.html">StrokeCap</a></li>
      <li><a href="dart-ui/StrokeJoin-class.html">StrokeJoin</a></li>
      <li><a href="dart-ui/TextAffinity-class.html">TextAffinity</a></li>
      <li><a href="dart-ui/TextAlign-class.html">TextAlign</a></li>
      <li><a href="dart-ui/TextBaseline-class.html">TextBaseline</a></li>
      <li><a href="dart-ui/TextDecorationStyle-class.html">TextDecorationStyle</a></li>
      <li><a href="dart-ui/TextDirection-class.html">TextDirection</a></li>
      <li><a href="dart-ui/TileMode-class.html">TileMode</a></li>
      <li><a href="dart-ui/VertexMode-class.html">VertexMode</a></li>
    
      <li class="section-title"><a href="dart-ui/dart-ui-library.html#typedefs">Typedefs</a></li>
      <li><a href="dart-ui/FrameCallback.html">FrameCallback</a></li>
      <li><a href="dart-ui/ImageDecoderCallback.html">ImageDecoderCallback</a></li>
      <li><a href="dart-ui/PlatformMessageCallback.html">PlatformMessageCallback</a></li>
      <li><a href="dart-ui/PlatformMessageResponseCallback.html">PlatformMessageResponseCallback</a></li>
      <li><a href="dart-ui/PointerDataPacketCallback.html">PointerDataPacketCallback</a></li>
      <li><a href="dart-ui/SemanticsActionCallback.html">SemanticsActionCallback</a></li>
      <li><a href="dart-ui/VoidCallback.html">VoidCallback</a></li>
    
    </ol>
  </div>

  <div id="dartdoc-main-content" class="col-xs-12 col-sm-9 col-md-8 main-content">
      <div><h1>Offset class </h1></div>

    <section class="desc markdown">
      <p>An immutable 2D floating-point offset.</p>
<p>Generally speaking, Offsets can be interpreted in two ways:</p><ol><li>
<p>As representing a point in Cartesian space a specified distance from a
separately-maintained origin. For example, the top-left position of
children in the <code>RenderBox</code> protocol is typically represented as an
<a href="dart-ui/Offset-class.html">Offset</a> from the top left of the parent box.</p></li><li>
<p>As a vector that can be applied to coordinates. For example, when
painting a <code>RenderObject</code>, the parent is passed an <a href="dart-ui/Offset-class.html">Offset</a> from the
screen's origin which it can add to the offsets of its children to find
the <a href="dart-ui/Offset-class.html">Offset</a> from the screen's origin to each of the children.</p></li></ol>
<p>Because a particular <a href="dart-ui/Offset-class.html">Offset</a> can be interpreted as one sense at one time
then as the other sense at a later time, the same class is used for both
senses.</p>
<p>See also:</p><ul><li><a href="dart-ui/Size-class.html">Size</a>, which represents a vector describing the size of a rectangle.</li></ul>
    </section>
    
    <section>
      <dl class="dl-horizontal">
        <dt>Inheritance</dt>
        <dd><ul class="gt-separated dark clazz-relationships">
          <li><a href="dart-core/Object-class.html">Object</a></li>
          <li><a href="dart-ui/OffsetBase-class.html">OffsetBase</a></li>
          <li>Offset</li>
        </ul></dd>




      </dl>
    </section>

    <section class="summary offset-anchor" id="constructors">
      <h2>Constructors</h2>

      <dl class="constructor-summary-list">
        <dt id="Offset" class="callable">
          <span class="name"><a href="dart-ui/Offset/Offset.html">Offset</a></span><span class="signature">(<span class="parameter" id="-param-dx"><span class="type-annotation"><a href="dart-core/double-class.html">double</a></span> <span class="parameter-name">dx</span>, </span> <span class="parameter" id="-param-dy"><span class="type-annotation"><a href="dart-core/double-class.html">double</a></span> <span class="parameter-name">dy</span></span>)</span>
        </dt>
        <dd>
          Creates an offset. The first argument sets <code>dx</code>, the horizontal component,
and the second sets <code>dy</code>, the vertical component.
          <div class="constructor-modifier features">const</div>
        </dd>
        <dt id="Offset.fromDirection" class="callable">
          <span class="name"><a href="dart-ui/Offset/Offset.fromDirection.html">Offset.fromDirection</a></span><span class="signature">(<span class="parameter" id="fromDirection-param-direction"><span class="type-annotation"><a href="dart-core/double-class.html">double</a></span> <span class="parameter-name">direction</span>, [</span> <span class="parameter" id="fromDirection-param-distance"><span class="type-annotation"><a href="dart-core/double-class.html">double</a></span> <span class="parameter-name">distance</span> = <span class="default-value">1.0</span></span> ])</span>
        </dt>
        <dd>
          Creates an offset from its <code>direction</code> and <code>distance</code>. <a href="dart-ui/Offset/Offset.fromDirection.html">[...]</a>
          <div class="constructor-modifier features">factory</div>
        </dd>
      </dl>
    </section>

    <section class="summary offset-anchor" id="instance-properties">
      <h2>Properties</h2>

      <dl class="properties">
        <dt id="direction" class="property">
          <span class="name"><a href="dart-ui/Offset/direction.html">direction</a></span>
          <span class="signature">&#8594; <a href="dart-core/double-class.html">double</a></span>         
        </dt>
        <dd>
          The angle of this offset as radians clockwise from the positive x-axis, in
the range -<a href="dart-math/pi-constant.html">pi</a> to <a href="dart-math/pi-constant.html">pi</a>, assuming positive values of the x-axis go to the
left and positive values of the y-axis go down. <a href="dart-ui/Offset/direction.html">[...]</a>
                  <div class="features">read-only</div>
</dd>
        <dt id="distance" class="property">
          <span class="name"><a href="dart-ui/Offset/distance.html">distance</a></span>
          <span class="signature">&#8594; <a href="dart-core/double-class.html">double</a></span>         
        </dt>
        <dd>
          The magnitude of the offset. <a href="dart-ui/Offset/distance.html">[...]</a>
                  <div class="features">read-only</div>
</dd>
        <dt id="distanceSquared" class="property">
          <span class="name"><a href="dart-ui/Offset/distanceSquared.html">distanceSquared</a></span>
          <span class="signature">&#8594; <a href="dart-core/double-class.html">double</a></span>         
        </dt>
        <dd>
          The square of the magnitude of the offset. <a href="dart-ui/Offset/distanceSquared.html">[...]</a>
                  <div class="features">read-only</div>
</dd>
        <dt id="dx" class="property">
          <span class="name"><a href="dart-ui/Offset/dx.html">dx</a></span>
          <span class="signature">&#8594; <a href="dart-core/double-class.html">double</a></span>         
        </dt>
        <dd>
          The x component of the offset. <a href="dart-ui/Offset/dx.html">[...]</a>
                  <div class="features">read-only</div>
</dd>
        <dt id="dy" class="property">
          <span class="name"><a href="dart-ui/Offset/dy.html">dy</a></span>
          <span class="signature">&#8594; <a href="dart-core/double-class.html">double</a></span>         
        </dt>
        <dd>
          The y component of the offset. <a href="dart-ui/Offset/dy.html">[...]</a>
                  <div class="features">read-only</div>
</dd>
        <dt id="hashCode" class="property">
          <span class="name"><a href="dart-ui/Offset/hashCode.html">hashCode</a></span>
          <span class="signature">&#8594; <a href="dart-core/int-class.html">int</a></span>         
        </dt>
        <dd>
          The hash code for this object. <a href="dart-ui/Offset/hashCode.html">[...]</a>
                  <div class="features">read-only, override</div>
</dd>
        <dt id="isFinite" class="property inherited">
          <span class="name"><a href="dart-ui/OffsetBase/isFinite.html">isFinite</a></span>
          <span class="signature">&#8594; <a href="dart-core/bool-class.html">bool</a></span>         
        </dt>
        <dd class="inherited">
          Whether both components are finite (neither infinite nor NaN). <a href="dart-ui/OffsetBase/isFinite.html">[...]</a>
                  <div class="features">read-only, inherited</div>
</dd>
        <dt id="isInfinite" class="property inherited">
          <span class="name"><a href="dart-ui/OffsetBase/isInfinite.html">isInfinite</a></span>
          <span class="signature">&#8594; <a href="dart-core/bool-class.html">bool</a></span>         
        </dt>
        <dd class="inherited">
          Returns true if either component is <a href="dart-core/double/infinity-constant.html">double.infinity</a>, and false if both
are finite (or negative infinity, or NaN). <a href="dart-ui/OffsetBase/isInfinite.html">[...]</a>
                  <div class="features">read-only, inherited</div>
</dd>
        <dt id="runtimeType" class="property inherited">
          <span class="name"><a href="dart-core/Object/runtimeType.html">runtimeType</a></span>
          <span class="signature">&#8594; <a href="dart-core/Type-class.html">Type</a></span>         
        </dt>
        <dd class="inherited">
          A representation of the runtime type of the object.
                  <div class="features">read-only, inherited</div>
</dd>
      </dl>
    </section>

    <section class="summary offset-anchor" id="instance-methods">
      <h2>Methods</h2>
      <dl class="callables">
        <dt id="scale" class="callable">
          <span class="name"><a href="dart-ui/Offset/scale.html">scale</a></span><span class="signature">(<wbr><span class="parameter" id="scale-param-scaleX"><span class="type-annotation"><a href="dart-core/double-class.html">double</a></span> <span class="parameter-name">scaleX</span>, </span> <span class="parameter" id="scale-param-scaleY"><span class="type-annotation"><a href="dart-core/double-class.html">double</a></span> <span class="parameter-name">scaleY</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-ui/Offset-class.html">Offset</a></span>
          </span>
                  </dt>
        <dd>
          Returns a new offset with the x component scaled by <code>scaleX</code> and the y
component scaled by <code>scaleY</code>. <a href="dart-ui/Offset/scale.html">[...]</a>
                  
</dd>
        <dt id="toString" class="callable">
          <span class="name"><a href="dart-ui/Offset/toString.html">toString</a></span><span class="signature">(<wbr>)
            <span class="returntype parameter">&#8594; <a href="dart-core/String-class.html">String</a></span>
          </span>
                  </dt>
        <dd>
          Returns a string representation of this object.
                  <div class="features">override</div>
</dd>
        <dt id="translate" class="callable">
          <span class="name"><a href="dart-ui/Offset/translate.html">translate</a></span><span class="signature">(<wbr><span class="parameter" id="translate-param-translateX"><span class="type-annotation"><a href="dart-core/double-class.html">double</a></span> <span class="parameter-name">translateX</span>, </span> <span class="parameter" id="translate-param-translateY"><span class="type-annotation"><a href="dart-core/double-class.html">double</a></span> <span class="parameter-name">translateY</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-ui/Offset-class.html">Offset</a></span>
          </span>
                  </dt>
        <dd>
          Returns a new offset with translateX added to the x component and
translateY added to the y component. <a href="dart-ui/Offset/translate.html">[...]</a>
                  
</dd>
        <dt id="noSuchMethod" class="callable inherited">
          <span class="name"><a href="dart-core/Object/noSuchMethod.html">noSuchMethod</a></span><span class="signature">(<wbr><span class="parameter" id="noSuchMethod-param-invocation"><span class="type-annotation"><a href="dart-core/Invocation-class.html">Invocation</a></span> <span class="parameter-name">invocation</span></span>)
            <span class="returntype parameter">&#8594; dynamic</span>
          </span>
                  </dt>
        <dd class="inherited">
          Invoked when a non-existent method or property is accessed. <a href="dart-core/Object/noSuchMethod.html">[...]</a>
                  <div class="features">inherited</div>
</dd>
      </dl>
    </section>

    <section class="summary offset-anchor" id="operators">
      <h2>Operators</h2>
      <dl class="callables">
        <dt id="operator %" class="callable">
          <span class="name"><a href="dart-ui/Offset/operator_modulo.html">operator %</a></span><span class="signature">(<wbr><span class="parameter" id="%-param-operand"><span class="type-annotation"><a href="dart-core/double-class.html">double</a></span> <span class="parameter-name">operand</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-ui/Offset-class.html">Offset</a></span>
          </span>
                  </dt>
        <dd>
          Modulo (remainder) operator. <a href="dart-ui/Offset/operator_modulo.html">[...]</a>
                  
</dd>
        <dt id="operator &amp;" class="callable">
          <span class="name"><a href="dart-ui/Offset/operator_bitwise_and.html">operator &</a></span><span class="signature">(<wbr><span class="parameter" id="&-param-other"><span class="type-annotation"><a href="dart-ui/Size-class.html">Size</a></span> <span class="parameter-name">other</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-ui/Rect-class.html">Rect</a></span>
          </span>
                  </dt>
        <dd>
          Rectangle constructor operator. <a href="dart-ui/Offset/operator_bitwise_and.html">[...]</a>
                  
</dd>
        <dt id="operator *" class="callable">
          <span class="name"><a href="dart-ui/Offset/operator_multiply.html">operator *</a></span><span class="signature">(<wbr><span class="parameter" id="*-param-operand"><span class="type-annotation"><a href="dart-core/double-class.html">double</a></span> <span class="parameter-name">operand</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-ui/Offset-class.html">Offset</a></span>
          </span>
                  </dt>
        <dd>
          Multiplication operator. <a href="dart-ui/Offset/operator_multiply.html">[...]</a>
                  
</dd>
        <dt id="operator +" class="callable">
          <span class="name"><a href="dart-ui/Offset/operator_plus.html">operator +</a></span><span class="signature">(<wbr><span class="parameter" id="+-param-other"><span class="type-annotation"><a href="dart-ui/Offset-class.html">Offset</a></span> <span class="parameter-name">other</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-ui/Offset-class.html">Offset</a></span>
          </span>
                  </dt>
        <dd>
          Binary addition operator. <a href="dart-ui/Offset/operator_plus.html">[...]</a>
                  
</dd>
        <dt id="operator -" class="callable">
          <span class="name"><a href="dart-ui/Offset/operator_minus.html">operator -</a></span><span class="signature">(<wbr><span class="parameter" id="--param-other"><span class="type-annotation"><a href="dart-ui/Offset-class.html">Offset</a></span> <span class="parameter-name">other</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-ui/Offset-class.html">Offset</a></span>
          </span>
                  </dt>
        <dd>
          Binary subtraction operator. <a href="dart-ui/Offset/operator_minus.html">[...]</a>
                  
</dd>
        <dt id="operator &#x2F;" class="callable">
          <span class="name"><a href="dart-ui/Offset/operator_divide.html">operator /</a></span><span class="signature">(<wbr><span class="parameter" id="/-param-operand"><span class="type-annotation"><a href="dart-core/double-class.html">double</a></span> <span class="parameter-name">operand</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-ui/Offset-class.html">Offset</a></span>
          </span>
                  </dt>
        <dd>
          Division operator. <a href="dart-ui/Offset/operator_divide.html">[...]</a>
                  
</dd>
        <dt id="operator ==" class="callable">
          <span class="name"><a href="dart-ui/Offset/operator_equals.html">operator ==</a></span><span class="signature">(<wbr><span class="parameter" id="==-param-other"><span class="type-annotation">dynamic</span> <span class="parameter-name">other</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-core/bool-class.html">bool</a></span>
          </span>
                  </dt>
        <dd>
          Compares two Offsets for equality.
                  <div class="features">override</div>
</dd>
        <dt id="operator unary-" class="callable">
          <span class="name"><a href="dart-ui/Offset/operator_unary_minus.html">operator unary-</a></span><span class="signature">(<wbr>)
            <span class="returntype parameter">&#8594; <a href="dart-ui/Offset-class.html">Offset</a></span>
          </span>
                  </dt>
        <dd>
          Unary negation operator. <a href="dart-ui/Offset/operator_unary_minus.html">[...]</a>
                  
</dd>
        <dt id="operator ~&#x2F;" class="callable">
          <span class="name"><a href="dart-ui/Offset/operator_truncate_divide.html">operator ~/</a></span><span class="signature">(<wbr><span class="parameter" id="~/-param-operand"><span class="type-annotation"><a href="dart-core/double-class.html">double</a></span> <span class="parameter-name">operand</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-ui/Offset-class.html">Offset</a></span>
          </span>
                  </dt>
        <dd>
          Integer (truncating) division operator. <a href="dart-ui/Offset/operator_truncate_divide.html">[...]</a>
                  
</dd>
        <dt id="operator &lt;" class="callable inherited">
          <span class="name"><a href="dart-ui/OffsetBase/operator_less.html">operator <</a></span><span class="signature">(<wbr><span class="parameter" id="<-param-other"><span class="type-annotation"><a href="dart-ui/OffsetBase-class.html">OffsetBase</a></span> <span class="parameter-name">other</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-core/bool-class.html">bool</a></span>
          </span>
                  </dt>
        <dd class="inherited">
          Less-than operator. Compares an <a href="dart-ui/Offset-class.html">Offset</a> or <a href="dart-ui/Size-class.html">Size</a> to another <a href="dart-ui/Offset-class.html">Offset</a> or
<a href="dart-ui/Size-class.html">Size</a>, and returns true if both the horizontal and vertical values of the
left-hand-side operand are smaller than the horizontal and vertical values
of the right-hand-side operand respectively. Returns false otherwise. <a href="dart-ui/OffsetBase/operator_less.html">[...]</a>
                  <div class="features">inherited</div>
</dd>
        <dt id="operator &lt;=" class="callable inherited">
          <span class="name"><a href="dart-ui/OffsetBase/operator_less_equal.html">operator <=</a></span><span class="signature">(<wbr><span class="parameter" id="<=-param-other"><span class="type-annotation"><a href="dart-ui/OffsetBase-class.html">OffsetBase</a></span> <span class="parameter-name">other</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-core/bool-class.html">bool</a></span>
          </span>
                  </dt>
        <dd class="inherited">
          Less-than-or-equal-to operator. Compares an <a href="dart-ui/Offset-class.html">Offset</a> or <a href="dart-ui/Size-class.html">Size</a> to another
<a href="dart-ui/Offset-class.html">Offset</a> or <a href="dart-ui/Size-class.html">Size</a>, and returns true if both the horizontal and vertical
values of the left-hand-side operand are smaller than or equal to the
horizontal and vertical values of the right-hand-side operand
respectively. Returns false otherwise. <a href="dart-ui/OffsetBase/operator_less_equal.html">[...]</a>
                  <div class="features">inherited</div>
</dd>
        <dt id="operator &gt;" class="callable inherited">
          <span class="name"><a href="dart-ui/OffsetBase/operator_greater.html">operator ></a></span><span class="signature">(<wbr><span class="parameter" id=">-param-other"><span class="type-annotation"><a href="dart-ui/OffsetBase-class.html">OffsetBase</a></span> <span class="parameter-name">other</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-core/bool-class.html">bool</a></span>
          </span>
                  </dt>
        <dd class="inherited">
          Greater-than operator. Compares an <a href="dart-ui/Offset-class.html">Offset</a> or <a href="dart-ui/Size-class.html">Size</a> to another <a href="dart-ui/Offset-class.html">Offset</a>
or <a href="dart-ui/Size-class.html">Size</a>, and returns true if both the horizontal and vertical values of
the left-hand-side operand are bigger than the horizontal and vertical
values of the right-hand-side operand respectively. Returns false
otherwise. <a href="dart-ui/OffsetBase/operator_greater.html">[...]</a>
                  <div class="features">inherited</div>
</dd>
        <dt id="operator &gt;=" class="callable inherited">
          <span class="name"><a href="dart-ui/OffsetBase/operator_greater_equal.html">operator >=</a></span><span class="signature">(<wbr><span class="parameter" id=">=-param-other"><span class="type-annotation"><a href="dart-ui/OffsetBase-class.html">OffsetBase</a></span> <span class="parameter-name">other</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-core/bool-class.html">bool</a></span>
          </span>
                  </dt>
        <dd class="inherited">
          Greater-than-or-equal-to operator. Compares an <a href="dart-ui/Offset-class.html">Offset</a> or <a href="dart-ui/Size-class.html">Size</a> to
another <a href="dart-ui/Offset-class.html">Offset</a> or <a href="dart-ui/Size-class.html">Size</a>, and returns true if both the horizontal and
vertical values of the left-hand-side operand are bigger than or equal to
the horizontal and vertical values of the right-hand-side operand
respectively. Returns false otherwise. <a href="dart-ui/OffsetBase/operator_greater_equal.html">[...]</a>
                  <div class="features">inherited</div>
</dd>
      </dl>
    </section>


    <section class="summary offset-anchor" id="static-methods">
      <h2>Static Methods</h2>
      <dl class="callables">
        <dt id="lerp" class="callable">
          <span class="name"><a href="dart-ui/Offset/lerp.html">lerp</a></span><span class="signature">(<wbr><span class="parameter" id="lerp-param-a"><span class="type-annotation"><a href="dart-ui/Offset-class.html">Offset</a></span> <span class="parameter-name">a</span>, </span> <span class="parameter" id="lerp-param-b"><span class="type-annotation"><a href="dart-ui/Offset-class.html">Offset</a></span> <span class="parameter-name">b</span>, </span> <span class="parameter" id="lerp-param-t"><span class="type-annotation"><a href="dart-core/double-class.html">double</a></span> <span class="parameter-name">t</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-ui/Offset-class.html">Offset</a></span>
          </span>
                  </dt>
        <dd>
          Linearly interpolate between two offsets. <a href="dart-ui/Offset/lerp.html">[...]</a>
                  
</dd>
      </dl>
    </section>

    <section class="summary offset-anchor" id="constants">
      <h2>Constants</h2>

      <dl class="properties">
        <dt id="infinite" class="constant">
          <span class="name "><a href="dart-ui/Offset/infinite-constant.html">infinite</a></span>
          <span class="signature">&#8594; const <a href="dart-ui/Offset-class.html">Offset</a></span>
                  </dt>
        <dd>
          An offset with infinite x and y components. <a href="dart-ui/Offset/infinite-constant.html">[...]</a>
                  
  <div>
            <span class="signature"><code>const <a href="dart-ui/Offset/Offset.html">Offset</a>(double.infinity, double.infinity)</code></span>
          </div>
        </dd>
        <dt id="zero" class="constant">
          <span class="name "><a href="dart-ui/Offset/zero-constant.html">zero</a></span>
          <span class="signature">&#8594; const <a href="dart-ui/Offset-class.html">Offset</a></span>
                  </dt>
        <dd>
          An offset with zero magnitude. <a href="dart-ui/Offset/zero-constant.html">[...]</a>
                  
  <div>
            <span class="signature"><code>const <a href="dart-ui/Offset/Offset.html">Offset</a>(0.0, 0.0)</code></span>
          </div>
        </dd>
      </dl>
    </section>

  </div> <!-- /.main-content -->

  <div id="dartdoc-sidebar-right" class="col-xs-6 col-sm-6 col-md-2 sidebar sidebar-offcanvas-right">
    <ol>
      <li class="section-title"><a href="dart-ui/Offset-class.html#constructors">Constructors</a></li>
      <li><a href="dart-ui/Offset/Offset.html">Offset</a></li>
      <li><a href="dart-ui/Offset/Offset.fromDirection.html">fromDirection</a></li>
    
      <li class="section-title">
        <a href="dart-ui/Offset-class.html#instance-properties">Properties</a>
      </li>
      <li><a href="dart-ui/Offset/direction.html">direction</a></li>
      <li><a href="dart-ui/Offset/distance.html">distance</a></li>
      <li><a href="dart-ui/Offset/distanceSquared.html">distanceSquared</a></li>
      <li><a href="dart-ui/Offset/dx.html">dx</a></li>
      <li><a href="dart-ui/Offset/dy.html">dy</a></li>
      <li><a href="dart-ui/Offset/hashCode.html">hashCode</a></li>
      <li class="inherited"><a href="dart-ui/OffsetBase/isFinite.html">isFinite</a></li>
      <li class="inherited"><a href="dart-ui/OffsetBase/isInfinite.html">isInfinite</a></li>
      <li class="inherited"><a href="dart-core/Object/runtimeType.html">runtimeType</a></li>
    
      <li class="section-title"><a href="dart-ui/Offset-class.html#instance-methods">Methods</a></li>
      <li><a href="dart-ui/Offset/scale.html">scale</a></li>
      <li><a href="dart-ui/Offset/toString.html">toString</a></li>
      <li><a href="dart-ui/Offset/translate.html">translate</a></li>
      <li class="inherited"><a href="dart-core/Object/noSuchMethod.html">noSuchMethod</a></li>
    
      <li class="section-title"><a href="dart-ui/Offset-class.html#operators">Operators</a></li>
      <li><a href="dart-ui/Offset/operator_modulo.html">operator %</a></li>
      <li><a href="dart-ui/Offset/operator_bitwise_and.html">operator &</a></li>
      <li><a href="dart-ui/Offset/operator_multiply.html">operator *</a></li>
      <li><a href="dart-ui/Offset/operator_plus.html">operator +</a></li>
      <li><a href="dart-ui/Offset/operator_minus.html">operator -</a></li>
      <li><a href="dart-ui/Offset/operator_divide.html">operator /</a></li>
      <li><a href="dart-ui/Offset/operator_equals.html">operator ==</a></li>
      <li><a href="dart-ui/Offset/operator_unary_minus.html">operator unary-</a></li>
      <li><a href="dart-ui/Offset/operator_truncate_divide.html">operator ~/</a></li>
      <li class="inherited"><a href="dart-ui/OffsetBase/operator_less.html">operator <</a></li>
      <li class="inherited"><a href="dart-ui/OffsetBase/operator_less_equal.html">operator <=</a></li>
      <li class="inherited"><a href="dart-ui/OffsetBase/operator_greater.html">operator ></a></li>
      <li class="inherited"><a href="dart-ui/OffsetBase/operator_greater_equal.html">operator >=</a></li>
    
    
      <li class="section-title"><a href="dart-ui/Offset-class.html#static-methods">Static methods</a></li>
      <li><a href="dart-ui/Offset/lerp.html">lerp</a></li>
    
      <li class="section-title"><a href="dart-ui/Offset-class.html#constants">Constants</a></li>
      <li><a href="dart-ui/Offset/infinite-constant.html">infinite</a></li>
      <li><a href="dart-ui/Offset/zero-constant.html">zero</a></li>
    </ol>
  </div><!--/.sidebar-offcanvas-->

</main>

<footer>
  <span class="no-break">
    shake 0.1.0
  </span>

  
</footer>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="static-assets/typeahead.bundle.min.js"></script>
<script src="static-assets/highlight.pack.js"></script>
<script src="static-assets/URI.js"></script>
<script src="static-assets/script.js"></script>


</body>

</html>
